<?php
header("content-type:text/html;charset=utf8");
$job=$_GET['job'];
$company=$_GET['company'];
$place=$_GET['place'];
$money=$_GET['money'];
$dbh= new  PDO ( 'mysql:host=localhost;dbname=mhsw' ,'root','root' );
$sql="insert into company (job,company,place,money) VALUES ('$job','$company','$place','$money')";
$arr=$dbh->exec($sql);
if($arr)
{
    header("location:list.php");
}
else{
    echo "添加失败";
}